package com.example.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.management.StandardEmitterMBean;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class Zhigong {
	 private Integer id;
	    private Integer bumenid;
	    private Integer age;
	    private Integer sex;
	    private String dianhua;
		private String name;


		private String bumenname;

		public static String[] sexs= {"未指定","男性","女性"};
		public String getSexname() {
			if(sex == null)
				return sexs[0];
			return sexs[sex];
		}

}